package com.gzist.elderlyserviceplatform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ServiceReservationQueryDTO;
import com.gzist.elderlyserviceplatform.entity.dto.ServiceReservationReviewDTO;
import com.gzist.elderlyserviceplatform.entity.po.ServiceReservation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.elderlyserviceplatform.entity.vo.HomePageInfoCountVOO;
import com.gzist.elderlyserviceplatform.entity.vo.ServiceReservationVO;

import java.util.List;

/**
 * 服务预约表 服务类
 */
public interface ServiceReservationService extends IService<ServiceReservation> {

    /**
     * 审核服务预约
     */
    void reviewServiceReservation(ServiceReservationReviewDTO reviewDTO);

    /**
     * 查询服务预约列表
     */
    Page<ServiceReservationVO> queryPage(ServiceReservationQueryDTO queryDTO);

    /**
     * 查询各个服务以及其预约人数
     */
    List<HomePageInfoCountVOO> countServiceReservation();
}
